package com.telecom;

import com.telecom.entity.Student;
import com.telecom.service.UserService;
import com.telecom.service.impl.UserServiceImpl;
import com.telecom.util.EntityFactory;
import com.telecom.util.EntityFactory2;

import java.util.Optional;

/**
 * Hello world!
 */
public class App {
    public static void main(String[] args) {
        Student student=new Student();
        student.setName("张三");
        student.setAge(18);
        student.setSex("男");


        /*UserService userService = new UserServiceImpl();
        userService.insert();*/
        /*Student student = EntityFactory.getBean(Student.class);
        System.out.println(student);*/
        Optional<Student> optional = EntityFactory2.getBean(Student.class);
        optional.ifPresent(System.out::println);
    }
}
